package com.zhanghuang.springbootstudy01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ThymeleafController {

    @GetMapping({"/index","/login","/index.html","/login.html"})
    public String login(){
        return "login";
    }

    @GetMapping({"/dashboard.html"})
    public String dashboard(){
        return "dashboard";
    }

}
